﻿/*
* 作者:haojielyb
* 邮箱:haojielyb@qq.com
*/

using SqlSugar;
using System;

namespace Lxb.Model
{
    public class VUsers
    {
        public int Id { get; set; }
        public int user_id { get; set; }
        public string username { get; set; }

        public string slname { get; set; }
        public string clname { get; set; }

        [SugarColumn(IsIgnore = true)]
        public string face { get; set; }

        /// <summary>
        /// 身份 1 校长  2 老师   3 学生  4 家长
        /// </summary>
        public int state { get; set; }

        public string zschool { get; set; }
        public string dx { get; set; }

        public DateTime uptime { get; set; }
    }

    [SugarTable("lxb_user")]
    public class Users
    {
        public int user_id { get; set; }
        public string username { get; set; }

        public string slname { get; set; }
        public string clname { get; set; }

        //[SqlSugar.SugarColumn(IsIgnore = true)]
        public string feature { get; set; }

        public int state { get; set; }

        public string zschool { get; set; }
        public string dx { get; set; }

        public Int64 rfid { get; set; }
        public DateTime uptime { get; set; }
        public DateTime kqtime { get; set; }
        public string tel { get; set; }
    }

    [SugarTable("lxb_face")]
    public class Face
    {
        public int uid { get; set; }
        public string face { get; set; }
    }

    [SugarTable("lxb_user_del")]
    public class Users_del
    {
        public string user_id { get; set; }

        public string School { get; set; }

        public DateTime deltime { get; set; }
    }

    [SugarTable("lxb_device_data")]
    public class Device_data
    {
        public int lxb_device { get; set; }

        public int state { get; set; }
        public string classname { get; set; }

        public string School { get; set; }
    }

    [SugarTable("lxb_face_down_log")]
    public class Face_down_log
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "Id")]
        public int Id { get; set; }

        public int uid { get; set; }
        public int status { get; set; }
        public int times { get; set; }
        public string why { get; set; }
        public string SN { get; set; }
        public DateTime time { get; set; }
    }

    [SugarTable("lxb_rfid_down_log")]
    public class rfid_down_log
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "Id")]
        public int id { get; set; }

        public int user_id { get; set; }
        public string rfid { get; set; }
        public int status { get; set; }
        public int times { get; set; }
        public int islock { get; set; }
        public string username { get; set; }
        public string SN { get; set; }
        [SugarColumn(IsIgnore = true)]
        public decimal blance { get; set; }
        public DateTime time { get; set; }
    }

    [SugarTable("lxb_wall_down_log")]
    public class wall_down_log
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "Id")]
        public int id { get; set; }

        public int user_id { get; set; }
        public int status { get; set; }
        public int times { get; set; }
        public decimal PV { get; set; }
        public string SN { get; set; }
        [SugarColumn(IsIgnore = true)]
        public decimal TPV { get; set; }
        public DateTime time { get; set; }
    }


}